package com.ask.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix = "ask.jwt")
public class JwtProperties {
    // 管理端
    private String adminSecretKey;
    private String accessTokenName;
    private long adminTtl;

    private String refreshTokenName;
    private String refreshSecretKey;
    private long refreshTtl;
    // 用户端
    private String userSecretKey;
    private String userTokenName;
    private long userTtl;
}
